package br.com.comanda.webservice.util;

import java.util.ArrayList;
import java.util.List;

import br.com.comanda.webservice.model.Board;
import br.com.comanda.webservice.vo.BoardVO;

public class ModelToVO {

	private static BoardVO toBoardVo(Board board) {
		BoardVO vo = new BoardVO();

		vo.setId(board.getId());
		vo.setBoard(board.getBoard());

		return vo;
	}

	public static List<BoardVO> toBoardVoList(List<Board> boards) {

		List<BoardVO> boardVos = new ArrayList<BoardVO>();
		for (Board board : boards) {
			boardVos.add(toBoardVo(board));
		}

		return boardVos;

	}

}
